import java.util.Scanner;
public class example025 {
    public static void main(String[] args) {
        int[] arr = {52, 63, 1, 14, 36, 95, 6, 10, 27, 40};
        int max = arr[0];
        int position = 0;
        for (
                int i = 1;
                i < arr.length; i++) {
            if (arr[i] > max) {
                max = arr[i];
                position = i;
            }
        }
        System.out.println("数组中的最大值为：" + max + "，位于第" + (position + 1) + "个位置");
    }
}
